Expand description

A small bevy plugin to easily display diagnostics to the screen

FPS and Frametime display:

use bevy_screen_diagnostics::{ScreenEntityDiagnosticsPlugin, ScreenFrameDiagnosticsPlugin};


fn main() {
   App::new()
       .add_plugins(DefaultPlugins)
       .add_plugin(ScreenEntityDiagnosticsPlugin)
       .add_plugin(ScreenFrameDiagnosticsPlugin);
}

bevy_screen_diagnostics provides the following bevy plugins:

  • ScreenDiagnostics which offers the basic functionality of displaying diagnostics.
  • [ScreenFrameDiagnostics] which adds the [FrameTimeDiagnosticsPlugin] and adds its diagnostics to [DiagnosticsText]
  • [ScreenEntityDiagnostics] which adds the [EntityCountDiagnosticsPlugin] and adds its diagnostics to [DiagnosticsText]

Structs

Enums

  • Aggregaes which can be used for displaying Diagnostics.

Type Definitions

  • Type alias for the fuction used to format a diagnostic value to a string.